package com.sdhs.common.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 基础Dao
 *
 * @author
 * @since 1.0.0
 */
public abstract interface BaseDao<T> extends BaseMapper<T> {
    /**
     * 返回驼峰MAP分页
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<Map<String,Object>> selectCamelMapsPage(IPage<T> page,
                                                  @Param("ew") Wrapper<T> queryWrapper);

}